package com.hsp_java.collection_;

import java.util.*;
public class ArrayListDetail {

    public static void main(String[] args) {


        //线程不安全ArrayList
        /*

    public boolean add(E e) {
        ensureCapacityInternal(size + 1);  // Increments modCount!!
        elementData[size++] = e;
        return true;
    }
         */



        ArrayList arrayList = new ArrayList();
        arrayList.add(null);
        arrayList.add("jack");
        arrayList.add(null);
        System.out.println(arrayList);
    }
}
